feat(voice): add mobile linking and cancellation - #3361
Draft
johnmatthewtennant wants to merge 1 commit into
Draft
feat(voice): add mobile linking and cancellation#3361johnmatthewtennant wants to merge 1 commit into
johnmatthewtennant wants to merge 1 commit into
Conversation
johnmatthewtennant
changed the base branch from
jtennant/buzz-voice-extraction-april
to
jt/buzz-voice-refactor
July 28, 2026 19:19
Contributor
Author
|
🤖 Terminal CI bookkeeping for exact mobile-linking head
No readiness or merge action was taken; the PR remains OPEN+DRAFT. |
johnmatthewtennant
force-pushed
the
jt/buzz-voice-refactor
branch
from
July 28, 2026 20:56
b6daac7 to
be4adc9
Compare
johnmatthewtennant
force-pushed
the
jtennant/buzz-voice-mobile-linking-april
branch
from
July 28, 2026 21:00
df2b7d9 to
5514cb2
Compare
johnmatthewtennant
force-pushed
the
jt/buzz-voice-refactor
branch
from
July 28, 2026 21:40
be4adc9 to
617e0d2
Compare
johnmatthewtennant
force-pushed
the
jtennant/buzz-voice-mobile-linking-april
branch
from
July 28, 2026 21:43
5514cb2 to
19ea0ad
Compare
johnmatthewtennant
force-pushed
the
jt/buzz-voice-refactor
branch
from
July 29, 2026 00:13
617e0d2 to
388cf0c
Compare
Signed-off-by: John Tennant <[email protected]>
johnmatthewtennant
force-pushed
the
jtennant/buzz-voice-mobile-linking-april
branch
from
July 29, 2026 00:16
19ea0ad to
b1c899f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
buzz-voiceis reusable Rust code, but the publishedsherpa-onnx-sysbuild rejects iOS and Android targets before a client can supply the official native libraries. Mobile clients also need an interruptible synthesis contract so session cancellation does not wait for a full utterance.Summary
This PR adds explicit static and shared link modes, a backwards-compatible cancellation callback for the April Pocket engine, and a provenance-preserving
sherpa-onnx-syspatch that links caller-supplied official mobile libraries throughSHERPA_ONNX_LIB_DIR.No model or native binary is bundled.
Changes
staticas the defaultbuzz-voicelink mode and adds an explicitsharedmode.synth_chunkand addssynth_chunk_with_callback(text, lang, style, steps, Option<F>).sherpa-onnx-sys1.13.4 metadata, bindings, license, andCargo.toml.origunchanged.Related issue
None found.
Testing
cargo fmt --all -- --check: passed.cargo test --locked -p buzz-voice --lib: 8 passed, 4 model-dependent tests ignored.-D warnings: passed.cargo package --locked --offline --allow-dirty -p buzz-voice: passed.aarch64-apple-ios,aarch64-apple-ios-sim,aarch64-linux-android, andx86_64-linux-androidthrough the fail-closed caller-library interface.Screenshots
N/A. This is a Rust API and native-link packaging change with no UI.
Reviewer-reproducible examples
Run the callback and April engine tests:
cargo test --locked -p buzz-voice --libExercise both host link modes:
With official sherpa-onnx 1.13.4 libraries prepared by the caller: